using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmPrmPromotion")]
    public class PrmPromotion
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "PrmId", ResourceType = typeof(Resources.PrmPromotionsResource))]
        public int PrmId { get; set; }

		[DataMember, Display(Name = "PrmYear", ResourceType = typeof(Resources.PrmPromotionsResource))]
        public Nullable<int> PrmYear { get; set; }

		[DataMember, Display(Name = "PrmPeriod", ResourceType = typeof(Resources.PrmPromotionsResource))]
        public Nullable<int> PrmPeriod { get; set; }

		[DataMember, Display(Name = "PrmName", ResourceType = typeof(Resources.PrmPromotionsResource))]
        public string PrmName { get; set; }

		[DataMember, Display(Name = "PrmDate", ResourceType = typeof(Resources.PrmPromotionsResource))]
        public Nullable<System.DateTime> PrmDate { get; set; }

		[DataMember, Display(Name = "PrmQuota", ResourceType = typeof(Resources.PrmPromotionsResource))]
        public Nullable<decimal> PrmQuota { get; set; }

		[ForeignKey("EmpType")]
		[DataMember, Display(Name = "EmpTypeId", ResourceType = typeof(Resources.PrmPromotionsResource))]
        public Nullable<int> EmpTypeId { get; set; }

		[ForeignKey("Apr")]
		[DataMember, Display(Name = "AprId", ResourceType = typeof(Resources.PrmPromotionsResource))]
        public Nullable<int> AprId { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.PrmPromotionsResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.PrmPromotionsResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.PrmPromotionsResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.PrmPromotionsResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.PrmPromotionsResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		public virtual MasEmployeeType EmpType { get; set; }

		public virtual PsCommand Apr { get; set; }

    }
}